﻿// AttributeViewObserver.cs
using NetTopologySuite.Features;
using System;

namespace Observer
{
    public class AttributeViewObserver : IObserver
    {
        public void Update(IFeature feature, ChangeStatus status)
        {
            if (status == ChangeStatus.ATTRIBUTE)
            {
                // 假设属性表中包含"Name"字段
                if (feature.Attributes.Exists("Name"))
                {
                    Console.WriteLine("要素Attribute改变为:" + feature.Attributes["Name"].ToString());
                }
            }
        }
    }
}